package com.laxcen.basiclib.core.task.core.task;

import android.os.HandlerThread;

/**
 * 任务子线程
 */

class TaskThread extends HandlerThread {

    private final TaskThreadHandler mExecuteHandler;

    public TaskThread(String name, int priority) {
        super(name, priority);
        start();
        mExecuteHandler = new TaskThreadHandler(getLooper());
    }

    /**
     * 获取此线程的处理总线
     * @return
     */
    public TaskThreadHandler getExecuteHandler() {
        return mExecuteHandler;
    }

}




